package com.bgds.sys.influx.service;

import com.alibaba.fastjson.JSONObject;
import com.bgds.sys.common.pagevo.SeriesVo;
import com.bgds.sys.module.entity.DeviceDynamicAttr;

import java.util.List;
import java.util.Map;

/**
 * @Author lj
 * @Date 2020/7/16
 */
public interface InfluxService {


    /**
     * 批量查询
     * @param deviceCode
     * @param startTime
     * @param endTime
     * @param deviceDynamicAttrs
     * @return
     */
    List<SeriesVo> queryByForMap(String deviceCode,
                                 Long startTime,
                                 Long endTime,
                                 List<DeviceDynamicAttr> deviceDynamicAttrs);

    /**
     *
     * @param measurement
     * @param deviceDynamicAttrs
     * @return
     */
    List<Map<String,Object>> queryByForMap(String measurement,List<DeviceDynamicAttr> deviceDynamicAttrs);
}
